
public class Valla {
	
	public int altura;
	public String orientacion;
	public int x;
	public int y;
	public int largo;
	
	public Valla(String linea) {
		String[] atributos = linea.split("\\s+");
		x = Integer.parseInt(atributos[0]);
		y = Integer.parseInt(atributos[1]);
		orientacion = atributos[2];
		largo = Integer.parseInt(atributos[3]);
		altura = Integer.parseInt(atributos[4]);
	}

	@Override
	public String toString() {
		
		return "[x]:" + x + "[y]" + y + " " + orientacion + " " + largo;
	}
	
	public static void main(String[] args) {
		System.out.println(new Valla("2 2 | 2 2").toString());
	}
	
}
